package com.youdoneed.community.forumConfig.dao;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.community.forumConfig.entity.Forumuserprivacyconfig;

@Mapper
public interface ForumuserprivacyconfigMapper {
    int deleteByPrimaryKey(String forumUserPrivacyConfigId);

    int insert(Forumuserprivacyconfig record);

    int insertSelective(Forumuserprivacyconfig record);

    Forumuserprivacyconfig selectByPrimaryKey(String forumUserPrivacyConfigId);
    
    /**
     * 根据用户id查找帖子隐私设置
     * @param userId
     * @return Forumuserprivacyconfig
     */
    Forumuserprivacyconfig selectByUserId(String userId);

    int updateByPrimaryKeySelective(Forumuserprivacyconfig record);

    int updateByPrimaryKey(Forumuserprivacyconfig record);
}